<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div class="chatter-block">
<div class="post" id="${post.id}" >
<c:choose>
	<c:when test="${post.poster.photo==null}">
		<img src="../images/noprofile.jpg" id="post" alt="user photo"/>
	</c:when>
	<c:otherwise>
		<img src="${post.poster.photo.encode}" alt="user photo"/>
	</c:otherwise>
</c:choose>
	<div class="postText">
	 <a href="#" class="poster">${post.poster.fName}</a>
	 <span class="text">${post.postText}</span>
	 <span class="date">${post.postDate}</span>
	<%--  <a href="#">Comment </a><a href="#"> Like</a>--%>
	</div>
	
				<div class="comments">
				<div class="test">
				</div>
				<textarea name="textarea" id="textarea" placeholder="Write a comment..." class="TB commentTA"></textarea>
				<a href="#"  onclick="doAjaxComment();clearDefaults();"class="form-btn comment-btn">Comment</a>
				<div class="valid-line" id ="err2" style = "color:red;display:none">Please,comment Something</div>
				</div>
</div>
</div>
